function T(timestamp) {
        var time1 = new Date(timestamp)
        var time2 = new Date

        time1 = time1.getTime()
        time2 = time2.getTime()

        var diffValue =   time2 - time1

        if(diffValue < 0) return;


        var minute = 1000 * 60;
        var hour = minute * 60;
        var day = hour * 24;
        var week = day * 7
        var month = day * 30;

        var monthC = diffValue / month;
        //console.log(monthC);
        var weekC = diffValue / week;
        //console.log(weekC);
        var dayC = diffValue / day;
        var hourC = diffValue / hour;
        var minC = diffValue / minute;

        result = ''
        if (monthC >= 1) {
            result =  parseInt(monthC) + "月前";
        }
        else if (weekC >= 1) {
            result =  parseInt(weekC) + "周前";
        }
        else if (dayC >= 1) {
            result = parseInt(dayC) + "天前";
        }
        else if (hourC >= 1) {
            result =  parseInt(hourC) + "小时前";
        }
        else if (minC >= 1) {
            result =  parseInt(minC) + "分钟前";
        } else{
            result = "刚刚";
        }
        return result;
    }

